package org.djw.org.mapper;

import org.djw.basic.mapper.BaseMapper;
import org.djw.org.domain.Employee;
import org.djw.org.query.EmployeeQuery;

import java.util.List;

/**
 * 部门模块mapper层
 */
public interface EmployeeMapper extends BaseMapper<Employee>{

    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    Employee loadByUsername(String username);

    /**
     * 根据登录信息id查询员工
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);
}

